/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.gov.cemaden.library.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author alan
 */
@Entity
@Table(name = "ger_posicao")
@SequenceGenerator(name = "sequence", sequenceName = "ger_posicao_sequence")
public class Posicao implements Serializable, BaseEntity{

    @Id
    @Column(name = "id_posicao")
    private Long idPosicao;    
    
    @Column(name = "lat")
    private Double latitude;
    
    @Column(name = "long")
    private Double longitude;
    
    public Posicao(){
        
    }
    
    public Long getId() {
        return this.getIdPosicao();
    }

    /**
     * @return the idPosicao
     */
    public Long getIdPosicao() {
        return idPosicao;
    }

    /**
     * @param idPosicao the idPosicao to set
     */
    public void setIdPosicao(Long idPosicao) {
        this.idPosicao = idPosicao;
    }

    /**
     * @return the latitude
     */
    public Double getLatitude() {
        return latitude;
    }

    /**
     * @param latitude the latitude to set
     */
    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    /**
     * @return the longitude
     */
    public Double getLongitude() {
        return longitude;
    }

    /**
     * @param longitude the longitude to set
     */
    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }
    
}
